package com.donleo.word.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.metadata.BaseRowModel;
import lombok.*;

import java.io.Serializable;
import java.util.Date;

/**
 * @author liangd
 * @since 2021-01-08 15:12
 */

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class WordExcelVo extends BaseRowModel implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @ExcelProperty(value = "ID",index = 0)
    private Integer id;

    /**
     * 英文
     */
    @ExcelProperty(value = "英文",index = 1)
    private String english;

    /**
     * 汉语
     */
    @ExcelProperty(value = "汉语",index = 2)
    private String chinese;

    /**
     * 作者（登录人）
     */
    @ExcelProperty(value = "作者",index = 3)
    private String author;

    /**
     * 发布时间
     */
    @ExcelProperty(value = "发布时间",index = 4)
    private Date commitTime;

    /**
     * 点赞数量
     */
    @ExcelProperty(value = "点赞数量",index = 5)
    private Integer number;
}
